{if $aTop}
        <table style="width: 100%;" cellpadding="4" cellspacing="0">
        <tr>
            <td class="border2">
                <table style="width: 100%;" class="mainmenu5" cellpadding="0" cellspacing="0" border="0">
                <tr>
                    <td width="7"><img src="design/pic/spacer.gif" class="sqr1" alt="" height="7" width="7" /></td>
                    <td class="block_header">{language text="my_top_friends"}</td>
                </tr>
                </table>

                <div style="font-size:9pt;" class="color">

<table style="width:100%;" cellpadding="4" cellspacing="5">
{section name=I loop=$aTop}
	<td style="width:25%;text-align:center;" class="color">
		<a href="{url link='public.user' name=$aTop[I].friend}">
			{$aTop[I].friend}
		</a>
		<div>
         <a href="{url link='public.user' name=$aTop[I].friend}">
			{Account::Avatar sUser=$aTop[I].friend iSize=75 class="pic1" onmouseover="showInfo5('`$aTop[I].friend`', '', '');this.className='pic2';" onmouseout="this.className='pic1';return nd();"}
		</a>
		</div>

	</td>
{if $smarty.section.I.iteration % 3 == 0}
</tr>
<tr>
{/if}
{/section}
<tr>
<td></td>
</tr>
</table>
                </div>
             </td>
        </tr>
        </table>
        <br />
{/if}

{if $aFriends}
    <table style="width:100%;">
        <tr>
            <td style="font-size:8pt;" class="color"></td>
            <td style="font-size:8pt;text-align:right;" class="color">{str_replace text="`viewing_apaging_fromrow_apaging_tor`" aPaging_fromRow="`$aPaging.fromRow`" aPaging_toRow="`$aPaging.toRow`" aPaging_totalRows="`$aPaging.totalRows`" }</td>
        </tr>
    </table>

    <br />

    {* START PICS ONLY *}
    {include file="$sRootPath/_blocks/pager.html"}
    <table style="width:100%;" cellpadding="5" cellspacing="0">

        <tr class="border13"> {*or empty*}
        {foreach from=$aFriends item=aFriend name=friends}
            <td style="text-align:center;vertical-align:middle;">
            <table style="margin-left:auto;margin-right:auto;">
                <tr>
                    <td style="font-size:8pt;" class="color">
                    <div class="list"><b><a class="link_description" href="{url link='public.user' name=$aFriend.user}"> {$aFriend.user}</a> </b></div>

                    <a href="{url link='public.user' name=$aFriend.user}">
                        {Account::Avatar sUser=$aFriend.user iSize=75 class="pic1" alt="" onmouseover="showInfo5('`$aFriend.user`', '', '');this.className='pic2';" onmouseout="this.className='pic1';return nd();"}
                    </a>
                    </td>
                </tr>
            </table>
            </td>
            {if $smarty.foreach.friends.iteration % $iRowSize == 0}
            </tr>
            <tr class="{if ($smarty.foreach.friends.iteration/$iRowSize)%2 == 0}border13{/if}">
            {/if}
        {/foreach}
        {if $smarty.foreach.friends.total % $iRowSize != 0}
            <td colspan="{$iRowSize}">&nbsp;</td>
        {/if}
        </tr>
    </table>
    {include file="$sRootPath/_blocks/pager.html"}
{else}
    <table style="width:100%;">
        <tr>
            <td><div class="message_info">{language text="there_are_no_friends_yet"}</div></td>
        </tr>
    </table>
{/if}